module.exports = app=>{
  const {INTEGER,STRING} = app.Sequelize // 获取对应sequelize对应的数据类型映射
  const Model = app.model.define('User',{
    id:{
      type:INTEGER,
      allowNull:false,
      primaryKey:true,
      autoIncrement:true
    },
    username:{
      type: STRING(30),
    },
    password:STRING(50),
    email:STRING,
    sex:INTEGER, // 1 男 2 女
    create_time:STRING,
    update_time:STRING,
    phone:STRING,
    desc:STRING
  })

  return Model
}
